﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MyChart
{
    public class GdPeiXianDz : PeiXianDz
    {
        int m_namex;
        int m_namey;
        int m_peix1;
        int m_peiy1;
        int m_peix2;
        int m_peiy2;
        public GdPeiXianDz()
        {
        }

        public GdPeiXianDz(int namex, int namey, int peix1, int peiy1, int peix2, int peiy2)
        {
            m_namex = namex;
            m_namey = namey;
            m_peix1 = peix1;
            m_peix2 = peix2;
            m_peiy1 = peiy1;
            m_peiy2 = peiy2;
        }

        public override void InitChart(System.Data.DataTable dt)
        {
            this.DzUsers[0] = dt.Rows[m_namey][m_namex].ToString();
            this.DzUsers[1] = dt.Rows[m_namey][m_peix1].ToString();
            this.DzUsers[2] = dt.Rows[m_namey][m_peix2].ToString();

        }
    }
}
